let confirmBox = function(msg='确认删除？') {
  return new Promise((resolve, reject) =>
    this.$confirm(msg, '提示', {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      type: 'warning'
    }).then(() => {
      // this.$message({
      //   type: 'success',
      //   message: '删除成功!'
      // })
      resolve()
    }).catch(() => {
      this.$message({
        type: 'info',
        message: '已取消删除'
      })
      reject()
    }))
}
export default confirmBox
